package cn.edu.sdjzu.xg.eagle.entity;

import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author tg.si@188.com
 * @project xg23
 * @date 2025/3/26
 */

@NoArgsConstructor
@ToString
public class School implements Comparable<School> {
    private Integer id;//对应着数据库表中的非业务主键 object id
    private String no;
    private String description;
    private String remarks;
//    {
//        this.id = IdUtil.getId();
//    }

    public School(Integer id, String description, String no, String remarks) {
        this(description, no, remarks);
        this.id = id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Integer getId() {
        return id;
    }

    public String getNo() {
        return no;
    }

    public String getDescription() {
        return description;
    }

    public String getRemarks() {
        return remarks;
    }

    public School(String description, String no, String remarks) {
        super();
        this.description = description;
        this.no = no;
        this.remarks = remarks;
    }

    @Override
    public int compareTo(School o) {
        return this.no.compareTo(o.no);
    }
}
